//插件引入
import { createApp } from 'vue'
import 'virtual:svg-icons-register'
import '@/styles/index.less'
import '@icon-park/vue-next/styles/index.css'
import { install } from '@icon-park/vue-next/es/all'

import DataVVue3 from '@kjgl77/datav-vue3'

//本地文件引入
import App from './App.vue'
import { setupStore } from '@/store'
import initPlugins from '@/plugins/index'
import { router } from './router'
import directive from '@/directive'

const app = createApp(App)

setupStore(app)
initPlugins(app)
directive(app)
app.use(router)
app.use(DataVVue3)
install(app, 'i')
app.mount('#app')
app.config.errorHandler = (err) => {
  console.log(err)
}
